import Vue from 'vue'
import Router from 'vue-router'

import SiteLogin from '../components/SiteLogin'                                   //站点登录
import SiteOrder from '../components/SiteOrder'
import SiteOrderComment from '../components/SiteOrderComment'
import SiteOrderList from '../components/SiteOrderList'
import SiteOrderSend from '../components/SiteOrderSend'
import SiteOrderTaking from '../components/SiteOrderTaking'
import SiteOrderTrans from '../components/SiteOrderTrans'
import RecycleLogin from '../components/RecycleLogin'                              //回收员登录
import Index from '../components/Index'                                            //登录首页
import SiteInfo from '../components/SiteInfo'                                      //站点信息
import RecycleInfo from '../components/RecycleInfo'                                //回收人员信息
import RecycleSelectSite from '../components/RecycleSelectSite'                    //回收人员查看站点信息
import SiteSelectRecycle from '../components/SiteSelectRecycle'                    //站点查询回收员信息
import RecycleOrderManage from '../components/RecycleOrderManage'
import SiteKinds from '../components/SiteKinds'                                    //站点查询站点类别信息
import SiteSelectSiteAccount from '../components/SiteSelectSiteAccount'            //站点查询站点账号信息




Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect:'index'
    },
    {//登录首页
      path: '/index',
      component: Index
    },
    {//站点登录
      path: '/siteLogin',
      component: SiteLogin
    },
    {//回收员登录
      path: '/recycleLogin',
      component: RecycleLogin
    },
    {//站点菜单栏
      path:'/siteOrder',
      component:SiteOrder,
      children:[
        {//订单评论页面
          path: '/siteOrderComment',
          component: SiteOrderComment
        },
        {
          path: '/siteOrderList',
          component: SiteOrderList
        },
        {
          path: '/siteOrderSend',
          component: SiteOrderSend
        },
        {
          path: '/siteOrderTaking',
          component: SiteOrderTaking
        },
        {
          path: '/siteOrderTrans',
          component: SiteOrderTrans
        },
        {
          path: '/recycleOrderManage',
          component: RecycleOrderManage,
        },
        {//站点信息
          path: '/siteInfo',
          component: SiteInfo
        },
        {//回收员人信息
          path: '/recycleInfo',
          component: RecycleInfo
        },
        {//回收员人信息
          path: '/recycleInfo',
          component: RecycleInfo
        },
        {//回收员查看站点信息
          path: '/recycleSelectSite',
          component: RecycleSelectSite
        },
        {//站点查看回收员账号
          path: '/siteSelectRecycle',
          component: SiteSelectRecycle
        },
        {//站点查看站点类别信息
          path: '/siteKinds',
          component: SiteKinds
        },
        {//站点查看站点类别信息
          path: '/siteSelectSiteAccount',
          component: SiteSelectSiteAccount
        },

      ]
    }
  ]
})
